<style>
    .table th {background: #f4f4f4;}
</style>
<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('订单号')}:</label>
        <div class="col-xs-12 col-sm-8">
            <label class="control-label">{$row.order_no|htmlentities}</label>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('预定订单')}:</label>
        <div class="col-xs-12 col-sm-8">
            <label class="control-label">{$row.reserve_no|htmlentities}</label>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Source')}:</label>
        <div class="col-xs-12 col-sm-8">
            <label class="control-label">
                <span class="label label-info">{$row.source|htmlentities}</span>
            </label>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('联系人')}:</label>
        <div class="col-xs-12 col-sm-8">
            <table class="table table-bordered table-nowrap" width="100%">
                <tbody>
                    <tr>
                        <th>姓名</th>
                        <td>{$row.realname|htmlentities}</td>
                        <th>性别</th>
                        <td>{$row.sex_name|htmlentities}</td>
                        <th>电话</th>
                        <td>{$row.tel|htmlentities}</td>
                    </tr>
                    <tr>
                        <th>身份证</th>
                        <td>{$row.person_no|htmlentities} <span class="label label-primary">{$row.certificates_type}</span></td>
                        <th>出生日期</th>
                        <td>{$row.birthday|htmlentities}</td>
                        <th>民族</th>
                        <td>{$row.nation|htmlentities}</td>
                    </tr>
                </tbody>
                <tfoot>
                    <tr>
                        <th>备注</th>
                        <td colspan="5">{$row.remarks|htmlentities}</td>
                    </tr>
                </tfoot>
            </table>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('同住客人')}:</label>
        <div class="col-xs-12 col-sm-8">
            <table class="table table-bordered table-nowrap" width="100%">
                <thead>
                    <tr>
                        <th>姓名</th>
                        <th>证件号码</th>
                        <th>联系电话</th>
                    </tr>
                </thead>
                <tbody>
                    {volist name="rplList" id="item"}
                    <tr>
                        <td>{$item['realname']} <span class="label {$item['sex_class']}">{$item['sex_name']}</span></td>
                        <td>{$item['person_no']} <span class="label label-primary">{$item['certificates_type']}</span></td>
                        <td>{$item['tel']}</td>
                    </tr>
                    {/volist}
                </tbody>
            </table>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('入住信息')}:</label>
        <div class="col-xs-12 col-sm-8">
            <table class="table table-bordered table-nowrap" width="100%">
                <tbody>
                    <tr>
                        <th>入住时间</th>
                        <td>{$row.check_in_date}</td>
                        <th>退房时间</th>
                        <td>{$row.check_out_date}</td>
                    </tr>
                    <tr>
                        <th>入住天数</th>
                        <td>{$row.days|htmlentities} 天</td>
                        <th>房间</th>
                        <td>
                            {$row.room_no}
                            <span class="label label-primary">{$row.room_type_name}</span>
                        </td>
                    </tr>
                </tbody>
                <tfoot>
                    <tr>
                        <th>订单总金额</th>
                        <td colspan="3">&yen;{$row.total_price|htmlentities}</td>
                    </tr>
                </tfoot>
            </table>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Reserve_status')}:</label>
        <div class="col-xs-12 col-sm-8">
            <label class="control-label">
                <span class="label label-success">{$row['reserve_status_name']}</span>
            </label>
        </div>
    </div>
    {if $row.addons}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('附件')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group" style="width: 98%;">
              <input id="c-addons" class="form-control" size="50" name="row[addons]" type="text" value="{$row.addons}" readonly>
              <div class="input-group-addon no-border no-padding hidden"> <span>
                <button type="button" id="plupload-addons" class="btn btn-danger plupload" data-input-id="c-addons" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="true" data-preview-id="p-addons"><i class="fa fa-upload"></i> {:__('Upload')}</button>
                </span> </div>
            </div>
            <ul class="row list-inline plupload-preview" id="p-addons">
            </ul>
        </div>
    </div>
    {/if}
    {if $row['cancel_remarks']}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">&nbsp;</label>
        <div class="col-xs-12 col-sm-8">
            <label class="control-label">
                {$row['cancel_remarks']}
            </label>
        </div>
    </div>
    {/if}
    <!-- <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div> -->
</form>